changed share button and onupdatemethod