prettify and fix calculation detail page