updated switchDetail view to get data about static flows