added progress bar to detail view and nicer displaying of state names