fix the web interface to deal with authentication and things