Fixing flickering in main activity when pressing on groups