add post edit and deleted func