Implementing the functionality for "Quit" button.
Implemeting the "Insert" button on panels.