make navbox work when ajax loaded

Ticket

+commit
 

Right now it only works if it's there on the initial load of the page.