get functionality with firebase to work