Styles.Forms encapsulated mainborderredraw in a subroutine to remove dublicated code