Allow renderInput and renderDisplay functions to be customized
Moving util function to RenderUtil script file. Adding constraints to domain properties