refactor interactivity. Functionality of detailtable is now externally available