clear-message buttons and better logout