Using the new template directory stuff.
Listen for all the mouse events.