Connecting Front-end to back-end