Added MainFrame instead of using JFrame