1. Fixing the Javascript issues with homepage.
2. Updating Controller methods to handle proper response object.