Added "Exit on Close" to main panel. (Ends the program when the main
window is closed)
Seperated frame2(for adding recipes) into a new class