Added possiility to diable buttons.