added row expanding functionality