Terminal Controller logic with handlebar template for views