added basic logic for changing of bg of nav