adding note input triggers and supporting code