app restructuring