added support for detecting browser