changing the close button position so it doesn't get hidden