Added preferences window