resize function added, change in home