added support for loading view with opacity