added things to correctly delete gui inside track if track is deleted, probably not the best and correct way of doing it yet