Closed issues #140, fixed tabs management and did other improvements for the AddLayer functionalities