added NGUI and test logic