edit post model
generate posts controller