again, thanks yucca.

you were right. i was trying to delete the views when in fact by using the AddViewL() function, i was already transferring ownership of the view to the viewappuui. i read somewhere in this forum that the views added will be deleted by the viewappui.