changes to get the community sort widget to auto-retract when needed