fix bug for variable view , change header and footer style