added functionality for creating new cells