fixing web ui ports and adding initial state fetch