Fixed bug in highlithing vectors, now functions are called when a box is created