signal handling and cell borders done