Added edit routes and actions for editing posts