Adding frontend code to interact with halfnarp