add edit post and update method. use partial for blog post form