Better approach to handle time for preview layers in catalog
Add a directive controller to avoid using 'this'