Changed to use broadcast to notify a directive which shows and hides the element it is attached to.