add event listeners to switch between visible tabs on widget edit form