firebase projects into a templates and started separating codes in files