Displays number when function button pressed