Adding 'onchange' support to tab directive