moving navigation function to php file, and write html code inside of php