Add closing endif tag