update states and url patterns
updated html snippets