add touched and active states to layer instead of targetElement