Added mode variable to mapmodule in order to keep track of the type of device running the map (walldisplay, tablet or tabletop)