added autofocus script to master layout