add firebase functionality to reply submit