add onclick function to modal reveal