added some more logic for thoughts page