changed form to an index page