add the some changes for logout