Removed a redundant IF statement in tabClick()