add codes to trigger the master's view appear and disapper related methods.

update the sample codes, too.