Add a controller fragment layer to decouple code