made table detail action more flexible