fix typing errors and creating sub ul