made detail buttons optional