going to start working on moving functionality from controller to services.