use class attribute to check for enabled/disabled desktop mode