modified gridViewController