moved app files to index to reduce code complexity.
replaced index.adp/tcl with files from app.adp/tcl