Fixed display and data tables in mobile view

* Fixed display of legend, tabs and data tables in mobile view
* Fixed loading of data tables in mobile view
* Merged in recent fixes added to master