integrating front-end with server side