fixed issue with orientation on tablet