event state change after creation, count in navbar