add view remove function in router