added support for tablets