Created main frame.