services

played around with decoupling logic from controller into services.