added condition to navigate. navigate = none now returns an emtpy div