refactoring page, element, file id parameters