Cleaned up code. Going to add different panel types rather than one panel type. Not saving properly yet so old code is commented out.