moving available accordion options rendering complexity to its own directive