Split the main html page and routed using angularjs routers.
Refactored the Controllers.