handle promise resolution in instanceController