added tablet detect