implement firebase for demo
add create plan function