Refactoring views and paste data previews