creating controllers, separatig tiers