Logout Fn added

Done:
 - logout function

Bug Fix:
 - improved delay time when infinite scrolling occurs