update user panel and logout logic