Added event for opening detail window