optimize the link_to method to avoid multiple useless queries + simplify the way of some of the checkboxes on the page form are converted into an UI toggle