changed event for navbar