readds implementation of onclick listener to shareoptions