fixing toggle on title click of dialog form