disable optimization button when the optimization table is active