Finish the connectons between front-end and server-end