cleaned up MainFrame

got rid of unnecessary dependancies/variables