add file and logic on module appeareance