Added same-page navigation and wrapped transactions in conditionals to hide if empty