Implemented given functionalities on Viewcontrollers.