
                _mailboxItem = Office.context.mailbox.item;
                // Check for the DOM to load before proceeding.
                $(document).ready(function () {
                    // After the DOM is loaded, app-specific code can run.
                    UpdateLayout();
                    AddContactsToNavBar();
                });
            }
            catch (err) {
                ShowErrorMessage();
            }
        }

        // Handle the click event for each contact.
        // P