update label helper to allow before() and after() input elements