updated styling and functionality