Integration of code in invoke view