Combine if statements
Change bookmarks functions into a class