adding debuging code in index page