add set rate dialog and more comments