update analytics and fix layer reordering bug