Functionality added for closing
Opening the close button
Close document functionality