Split out functions to individual html pages. Added navbar integration.