add end in static controller