applying reverse routing on index html page