change detail page and add apply dialog form