added preferences window