updated switchDetail view