minor code refactoring and added often requested confirmation dialog

Hi, 

I have added the often requested confirmation dialog to prevent accidental updating of the wrong bookmark. 

with kind regards

Jeroen