updates
toggle layers functionality