added create action when creating a post