added custom, multiple button support and toggle subwindow border option