extracted bookmark saving to separate method