fixing the thoughts pages to work as expected