building all in Ajax and jQuery
fix bugs