adding posting functionality and firebase