Added ajax call and signout support