updated post edit and routes