added trick insertion dialog