Updated index action to use object syntax rather than hash