added edit and destroy action to posts