dynamic logout button