source code changed to adapt a project, it was broken when resize browser windows