added functionality to remove or add new cells