supressed warnings and changed the border creation due to an issue on windows8.1