use data instead of variables in nav too