Fixed bug in Angular routing, which was causing controller to be initialised twice.