added rotation setting into overlay class