add last documents menu entry
adapt confirmbox to button widget changes
fix crash in wtest.lua
handle nil width for button widget
Merge pull request #786 from houqp/new_ui_code

add last documents history and fix wtest.lua