Add get_dex_url method
Add code to render dex html
Change logic template logic to get logic url
Add render to final_mask var
merge