code for hide\show  toolbar\layer widget and add\remove layer