reorganize action in app to do not copie many line off code