added button in gui to calculate distributions; refactored action distribution