Do not show solutions for hidden / inaccessible tasks; minor code cleanup