added dialog with form (not working correctly yet)