try this. removed app class, callback functions are separated from class.