moved sharing into JS instead of calling an action