fixed issues for mobile, ipad and other devices