Change wpt scripting in pushwpt to support pre and post navigation scripting as well.