mainDirectory.php
- fixed variable names
- changed popup window options