resolved issues for layer addition and widget show/hide

Change-Id: Icac390287e37ed1cd29336c921ad87f3d3fab457
Resolved issues : show/hide layer and toolbar widget also layer add

Change-Id: If5307c54fbf426cb402eab38ae62fbb3996f795c