removed trailing whitespace and fixed indentation in history widget