add cross browser compatablity