added directory choosing to web server