Update app to support multiple instances deployment