add mobile device support of header and modify the position of footer in mobile situation