implementation of grid view methods