main creation modal functionality complete