commit for the tasks of show/hide widget elements and add/remove layers

Change-Id: I77cf781c659080e80ce35123e3b6756c9093aa58