fixing the toggle and adding footer.