separate manager and view