Script in resource edit view