Added gesture recognizer to main viewcontroller.