Adding view share helper function

Signed-off-by: Travis Hyyppä <travishyyppa@gmail.com>
Fixing merge conflict

Signed-off-by: Travis Hyyppä <travishyyppa@gmail.com>