moved timer out of controller, re-added appsdk light to make tests pass