added listener control for amgic