Implemented ActionFactory and fixed cell edit bug