CSE-37:  Removed gesture recognizer when the homeviewcontroller is not shown and add it back when it is shown