Fixing menu buttons to be type button and dialog buttons to be type submit