implemented grid view