split up index action into two views