fix adding existed resource
- run modal delay