Added $.post call from front end