[fix] check first for deprecated layout template
[fix] correct check for deprecated container/column template
[fix] correct method to calculate time difference