added testcode for sending array to gui