added config firebase and fixed bug