Added ajax functionality for bookmarks