implement post and ajax request