added method for editing cells