Added error handling in js, some css for mentions