Adds nav bar alternation based on http requests
.