changed makeStateName method to display title before url and removed duplicate code from state writer