add method for date comparison in the template in order to display appropriate folder icons