integrate time and timeline into model and rename main to controller