Add post edit template and event handlers.