giving form to the index page