api and web page bug fixes