Change post method and move to ajax call.