added functionality for subscribed users and searching