cleaned up duplicate code, fixed domain prob
Merge pull request #8 from adamdiy/adam-creating-edit

cleaned up duplicate code, fixed domain prob