Mobile main view is now ordered and resize correctly if grid dimension
isn't changed (landscape -> portrait...)
Refactor