added edit in post controller