moved client to pages