addTripItem element converted to directive which generates a dropdown menu.