fix display bugs on mobiles