added new view helpers
updated client.close()