ShareDialog corrections

Minor corrections to code and comments