work on getting the response from the server and calling the right function, get()function