add code for different browser and change views