added close button and registration