this is pretty hacky that this is in main.js btw. I'm not sure what the right strategy to organize our UI code for each page right now