fixed bugs with layer manager and undo manager on changing tab