added template, function 'done' for checkbox and much brainfucking css