adding edges controller