fix register bug
logic for showing collections