Adding methods for enabling/disabling buttons.