modified edit posts to get heroku to work