made methods to post requests to backend
fixed merge conflicts