solved the issue with the size of the border pane