added draw and update functions for cells