fix all kinds of stuff for mobile and tablet