This function gets executed on creation of this class and in this case we mainly use it to assign the actions declared above to each button on the notification and their key-press respectively.