solidify the navTree restore functionality

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
Use removeItem instead of delete

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>