Modified the logic in the javascript to don't need to reload page when removing an instance.