upload directory is now relative to working directory
added headless clause so add and deletes don't redirect to index