refactor share menu code a bit to accommodate a new 'share article' menu