working impl of theme directive/controller.