add view attributes