Working on Rising Edge button logic