filter optionals out of controls before rendering