Added mapper functionality to indexAction in controller