add navbar and refresh index