reorganized CSS and fixed table styling for mobile