Web UI language is HTML, so just generate that. You don't even need a framework as CGI standard output is the HTTP response that browser will interpret and render. I haven't used FreeSpider for a very long time as the last time I tried it's very limtied, so I don't know its current state.