added option to edit the posts