fixed issues with friendship query and added css styling for gravatar