code blocks added to view