changed modal window to create tash not undefined