use .ajax instead of .post