Several important corrections in Page Borders and shading dialog.

Added several important corrections in Page Borders and shading dialog after testing of some GUI functions.