fix footer behavior on page swap, remove unused libs