added modal code