completing crud for posts