added overflow functionality and border