Add pull to refresh
Separate the pull to refresh code
Fix log out