added mechanism for top navigation