Broke because the <form> tag was returned, while the client logic was expecting the whole <div> including the <form>. Fixed to display the button bar at the bottom, and tested with validation errors as well as switching from/to the panel via ajax.