move Logic controller to separate files