fixed the memory leak caused by view reference in the onShow code. fixes #408
build