setup main frame of the application