fixed some layout issues for mobile devices