Add listeners for automatic generate chart