fixing a couple bugs with default states and URLs