clean the detail view and add accept function. TODO: pass the user info