some prefkey refactoring, improved rating dialog