fixed broken syntax for detecting 'is_mobile' and added detection for 'is_tablet' in framework.html