Adjust view when loading script