added tablet compatibility