Removed unnecessary methods from the view controller.