Change the logic for identify browser and version. Modify focus detection