add logout to views