Redesigned the way in which the current 'mode' is figured out. Also, now, app.init() sets the checkboxes' size too. (earlier it was set only while switching the modes)