[Task4] Fixed bug releated with navigating from device page to main page