added buttons for closing