refs #12 fix deleting objects
When deleting object, new line was still visible now it is deleted when new creating new line and delete button is pressed