add functionality to Rules and Exit buttons