break date controller out into plugin