disables buttons and links