update controls with custom function