It would be better if this could be model bound as opposed to dependent on the DOM state.