implemented db update dialog and remove OnClickListenerWithActivity class