remove unnecessary custom controller code