modify dao and add toast function