Fix bad encoding
Fix init method
- Specify delegate protocol
- Upgrade alert panel code