Refactor

Controller Code re-factored. 
Caching response data.