Avoid adding duplicate view controllers

Signed-off-by: Wu Xudong <tikiet@gmail.com>