Migrated views to scala