add ajax to case/new case/detail