Added preferences edit