Edit form properties and add close button