created controllers - clean up main controller