grid view working, need to refactor