Fixed handler for navbar expansion.