added alert and browser checking!