Added support for RANDOM & SEARCH view. Adapted to changes in different interfaces.