changes navbar and table style for mobile devices