More major updates for mobile layout, refactoring js also