function changes and clientwidth