Forms: fix action attribute and add support for extra buttons.