bookmark edit & share duplicate code