add live,route modal,fix model function