add local dependencies and code event popup