minor tweaks, changed #main for main element