moved add dialog to a page