fix sectioning issue for index
fix reference issue
make listing code floating