adds logic fornew post creation