DEV-62948 - first version
DEV-62948 - save last layer index of configuration
DEV-62948 - fixed corner case where menu is open but active state isn't set