share view code