fix logout button issue