Create post update and create functionality. Example of using partials