bug fixes

1. sort by rank
2. hide add button in item aggregation when parent is deleted.