Attempt to assign property "applybutton" on null