Fixes with building menu

- tweaks to `_buildMenu` function to correct some visual issues
- fixed the reference of ".page" when instantiating `_dataTable` in a custom layout table