Closes #420 by using the angular event bus if a modal is present.