added check for empty section name
updated view-change message for clarity