Add the template jade working, and code in the components to handle events.