added modal forms functionality