Removed invalid attribute 'type' in views