small refactor of nested ifs

removed the nested if in favor of a category on the gesture recognizer