dialog development completed, small bugs and ajax function required