Update Tails handler to use API
Only load on the client