added resize callbacks