update detail spot and create a file for directives