private void PreviousPageHandler(object sender, MouseButtonEventArgs e)
        {
            //Get the current instance of the navigation class
            CurrentPageModel currentClass = CurrentPageModel.getcurrentclass();

            currentClass.currentpage = "2";
            Page page3 = CurrentPageModel.thirdPage;

            if (page3 == null)
            {
                Page currentPage = new ProfileCreationPage3();
                this.NavigationService.Navigate(currentPage);
                //this.NavigationService.Navigate(new Uri(@"\ProfilePages\ProfileCreationPage3.xaml", UriKind.RelativeOrAbsolute));
            }
            else
            {
                //Load in the instance of the page
                this.NavigationService.Navigate(page3);
                //Load in the current navigation control
                WpfApp1.NavigationControls.NavigationControls thirdControl = (WpfApp1.NavigationControls.NavigationControls)CurrentPageModel.thirdControl;
                //Set the button manipulation
                thirdControl.buttonManipulation(currentClass.currentpage);
                //Set the page number
                thirdControl.PageNumber.Text = thirdControl.currentPageNumber(currentClass.currentpage);
            }
            //Save current instance of the page
            CurrentPageModel.fourthPage = this;
            //Save current instance of the user control
            CurrentPageModel.fourthControl = page4Controls;
        }
        private void NextPageHandler(object sender, MouseButtonEventArgs e)
        {
            Boolean isValidated = CurrentPageModel.secondValidation;
            string  data        = null;

            if (option1.IsChecked == true)
            {
                data = "a";
            }
            if (option2.IsChecked == true)
            {
                data = "b";
            }
            if (option3.IsChecked == true)
            {
                data = "c";
            }
            if (option4.IsChecked == true)
            {
                data = "d";
            }
            CurrentPageModel.secondValidation = true;
            UserModel.UserModel currentUserModel = UserModel.UserModel.currentUserModel;
            currentUserModel.profile2            = data;
            UserModel.UserModel.currentUserModel = currentUserModel;
            if (isValidated == true)
            {
                CurrentPageModel currentClass = CurrentPageModel.getcurrentclass();
                currentClass._currentPage = "2";
                Page page3 = CurrentPageModel.thirdPage;

                if (page3 == null)
                {
                    Page currentPage = new ProfileCreationPage3();
                    this.NavigationService.Navigate(currentPage);
                }
                else
                {
                    this.NavigationService.Navigate(page3);
                    WpfApp1.NavigationControls.NavigationControls thirdControl = (WpfApp1.NavigationControls.NavigationControls)CurrentPageModel.thirdControl;
                    thirdControl.buttonManipulation(currentClass.currentpage);
                    thirdControl.PageNumber.Text = thirdControl.currentPageNumber(currentClass.currentpage);
                }
            }
            else
            {
                MessageBox.Show("No option have been chosen. Please choose your option");
            }
            //Save the Instance of the second page//
            CurrentPageModel.secondPage = this;
            //Save the Instance of the second page controls//
            CurrentPageModel.secondControl = page2Controls;
        }