Show corresponding tab when editing a link
Reset tabs and clear inputs when link is published