added firebase api to html and updated data properly