added features to buttons