added collapse template