implement kick-server server call properly with angular code