hooked up frontend and backend, GET & POST