making borders and stuff compatable for mobile