update toolbar, add check for content change