replaced anonymous classes with lambdas
removed warnings; added css