Less inline javascript, converted the button and cred id passing.