Add javascript to modify state changing buttons and insert workflow buttons.