solve posting data and resubmition problem