Updated opbutton event