Edit WIP and code refactored for context menu options functions.