Fixed the valid path. Added the delegate implementations in the main controller.