Click action for the rows and modal