Added angular controller for details page