implementing main grid fragment