Format strings and set up view widgets