added support for tablet