Render form partial into index page, remove duplicated code.