Changed the way process button is disabled