added functionality for creating comments