make footer in the right position/ calculate