correct switching back to category view while searching