add hooks for both frameset and topframe