fix closing a tab deleting current tab
update profiles