fix webapp backend connection and clean up