add run when pages loaded dynamically