on_manage/on_create separation. fix window matching