first working version ; bookmark can be saved or updated