Cleaned up controllers so that it returns response instead of using it.