(minor) Fix dashboard html

Move .apopover to main.js