Updated SearchHandler

Added constructor to search handler to avoid problems with static