POST data to server and refresh view