fixed the layer action

still had the old overlay functions in it