Added methods and events, now works in firefox