Solve the selected layer in a another page and not shown as selected so the user gets confused if there is a Layer selected or not add layer selected somewhere in the page