restructure templates/models/views