Moves the buttons and reduce the space with close button