Add hook for opening files
Setup callback for show.bs.dropdown