fix for misplaced close button