Created context menu to input values into the grid.
Created a trigger for the context menu and separated the anonymouse listener classes into their own functions to clean up the code.