refactoring revisions widget