More tweaks to make it work in an ipad