updated for nested comments, fixed callbacks for fullscreen input directives