search preferences and correct url generation