Buttons behaviour.