adding more robust opacity attribute to view