Added preferences dialog (draft)
Update