Added modal opener and bound event to button for the time being.

Does not yet check if it is a directory. Which it needs to do.