Fixing bugs into _form.html.erb in Atendimento and correct logic for ability