Implemented the master view controller