close form should be outside button