adds index action and cleans up destroy