adding on deviceready funciton