Close button GUI and functionalities added

fning