simplify sample custom controller