Date calculations

also integrated mobile UI to the newly integrated menus for the different kind of users as the original layout.html got overwritten by the new menu html pages.