Expanded functions

Added expanded functionality to main.html