added code to get the income data and open the edit income dialog when edit button is pressed