Cleaned up code, made two new functions for page and tags/logbooks loading.