add time property to indexcontroller