updated for ie8 and mobile
updated for ie8 and mobile