Added feature for adding collection item, and refactored add_page feature