[api] refactor status controller
[api] refactor one more function