trying ajax
added post on profit calculation