reconstruct code of dialogfragment