Fixed thread expanding/collapsing and view button, they were broken in
the last commit.