updated to use view and button notification.