add the picmamager widget and fix some bugs