update logout button and turn off debug mode