change to sqlparams
clean up html
dont show copy button when no swf