Registered a callback to handle submit actions