refactor methods mark_as_seen and delete