create option UI appropriate to option type