remove globals and add sample controller