apt data is now passed as a param to post method via ajax