add edit post to front end