add scripts to position windows