/// <summary>
        /// Method to go back to the precedent page
        /// Update the alerts in the same time
        /// </summary>
        /// <returns></returns>
        public async Task GoBack()
        {
            UpdateAlerts();
            BoardWindow page = new BoardWindow(UserServices, AlertServices, MaterialServices, ProductServices, MaterialsProductServices, SaleServices, await AlertServices.CountAlerts());

            page.Show();
            CurrentPage.Close();
        }