moved to Mvc architecture