fix(main): Fix typo on function name
style(main): Add space after if
refactor(main): Clean up ratings ux