implement logout from browser