initial move of shares functionality from main app to shares plugin