move end divs so that sublime blocks still work, also unnecessary to have them in both if/else