adding proguard support for optimization
fixed NPE bug in grid adapters