Moved hr line to inside if block