toggling functionality for legacy browser ie8 and ie9 included