Add `bookmarked` class to bookmarks button. Also remove duplicated code,
use fewer observers.