complete modal form create functionality