Adds a Pattern Editor class and listens for click events