Hide submit if not necessary