fixed bug where content was loading multiple times