Add preferences to popup window