having trouble setting up global types reset in application controller