logout system and note view stubbing