Scripts update and also added resize condition for maps