add edit post method in controller