Integrate layout and excuting code for front end and back end