add event to show gray background