refactor app and routes into seperate files
start backend html handler