Added header, footer, canvas overlay and fixed mouse handling accordingly