custom template tag for accessing directory elements created