move code for URL generation to model/urlbuilder.py add format selection to input form create output template