Added border functionality for the GUI