improved the way json interactive elements are displayed and added hittest & callback capability so that client can add UI elements