This commit does three things:
(1) refactor code
(2) make the background of bookmark result dialog transparent
(3) fix 2 minor bugs about bookmarked page