add logout and pullrefresh