removed storyboard and implemented the functionalities in code