fixed multiple controller calls in main.html -  this file is getting too big