gaurd against empty string
updated html