fixed deprecated chrome api calls