client: move client to views