sharing views on the client and server