Only run ajax the addPanel when you need to (IE, not in ajax).