refactor bookmarks to class