added buttons to detail template