changed indenting
removed empty line
removed html that gets replaced when template renders
parsing and scrubbing URL pattern input