Add styles for tablets and mobiles, lots of refactoring