public async void addFriend(object sender, EventArgs e)  //add friend info sent to controller
        {
            string frienduserName = foundFriend.Text;
            User   friendUser     = await userController.getUserFromUsername(frienduserName);

            Friend friend1 = new Friend(user.userId, friendUser.userId, 0);
            Friend friend2 = new Friend(friendUser.userId, user.userId, 0);
            bool   flag    = await friendController.createModel(friend1);

            if (flag)
            {
                flag = await friendController.createModel(friend2);

                if (flag)
                {
                    isActivitySpinnerShowing(true);
                    await DisplayAlert("Message", "Friend Added Succesfully", "Okay");

                    App.Current.MainPage = new NavPage();
                }
                else
                {
                    await DisplayAlert("Message", "Error Occured!", "Okay");
                }
            }
            else
            {
                await DisplayAlert("Message", "Error Occured", "Okay");

                App.Current.MainPage = new AddFriendPage();
            }
        }