Added preferences dialog

Remove this line. Add this line at same place `Added preference dialog box, by dkumar`