move navigation logic from page yaml to data file