fix viewport and footer