Fix and add message alert

1. Add api: getAlert and dismissAlert
2. Update ui