add navigation directive

Maybe `buttons` here is an empty array?