add edit and delete for post front and back