added code to specify which layers to syncronize so layers are not syncronized duplicate times
added code to keep track when layer has been syncronized and to set it to unsynced as soon as a map item is added to it