create a gui for pattern testing