add edge controls working, but buggy