introduce main frame controller