structuring Client app