edit delete and details buttons work more smart.