changed EventVar to EventPipeVar and added EventVar to be more consistent with frp lib
added runOnUiThread function to Activity Object