finally fixed that window issue, fixed overloaded functions in events