moved some display functions out of grid