logout button fixes