Fix close button bugs in mobiles