added closing endif tag