Moved application demo main template to main.tpl