tr:nth bug fix
close navbar automatically after clicking