Added preferences dialog

Remove line `15` and `16`