Add logic for index action and remove cruft from Action class