reduce application to run method
create controller