changed mobile detection to use screen instead of dojo/window.
use `has` class instead of Controller properties to store variables.
added distinction between phone and tablet.