adds in data persistence and post request