Refactored modal display methods back into options dropdown directive.