Added js callback for userbar. The solution is kinda ugly, however it works anyway.