finish todo (before connect to firebase)
refactor to service
connect with firebase