preference edit functionality added