Added saving and loading templates.

Added better solution to toggle tasks.