add template refs for php template calls
add events on controller action implementation