*bugfix for generating error
*checking for trailing slashes for directories and paths and adding automatically on first generation
*ajax output is displayed on pages page again