Disable transition buttons before form submission