newui: Extend delete object for directories too
newui: Templates minor improvements