data retrival for post through ajax