added edit/delete functionalities to post