add conditions for enabling buttons in Navigate