add skymorph api to navbar and fix bug where angular would throw error
on non-index pages.