adding support for different browsers