Remove useless code
Remove useless import
Replace detail retry button by action