finised open, new, delete, clear, run functions of the context menu. TODO: record the position move of the module.