prevents controllers from running twice