Updated script on layout