calculate owner_id in controller for manager/users
bug fixes