[TASK] RT-1719: UI 404 error page, RT-2465 UI: Align 'edit' buttons

Do we need to inject all these dependencies here? Just trying to keep the code clean.