button to detail works