Add a hook to rebuild ui modules after a rebase