added alerts and persistifying accessToken