change the index page. Added test case for the redirection of new. Added...

... condition in new redirection.