fixed a bug that view of the removed page is not properly removed from the view container