separating the get client function and styles