Modal working for create.

I finally got the modal dialog working, and I can make records with it.