Cleanup of the code in view to do creation/destruction in the right places.

Change-Id: I1c87682cc2c35ad5ee15c06cd78f48b612668181
7 files changed