Used different method to detect browser