remove unused line
replace temp with query
add some table styling