Added front-end logic and updated styles