adding posts model and show page