improved firebase features and added stats page