sctructuring main app arquitecture