added preliminary action to buttons