add logoff and delete