add logout to template