added some code for making sticky navigation panels