refactor hardcoded urls out of view htmls