broken, compile errors due to passing client to view