Adding preventDefault to menu