Removed unused code in SecondPageView and added more code to SecondPageViewModel