make candidate display collapsable, fix #387
allow closing flatblock messages