Corrected the edit and delete functions on the menu grid