added hiding of regform/unregform in popup

added hiding of regform/unregform in popup