Added a function to change background and border