Moved application part of index.asp into template file