split index and form page into partials