added tablet support