cleaning up indexAction