Using simulation directive in main.html