created functionality for comment creation