update to handle null value for select box