Adding preferences to save URL