Fix margins and close when open button is clicked