bug fixes for firefox and ipad scaling issues