Moved template out of mains/index.html.erb to a template file.
Made popover smaller so it doesn't go out of the screen. Should
check why it drifts right.