fixed listner bug, and multiple ajax posts