added scripts for ending scene and triggers