clean up firebase lookup and form behaviour