added simple frontend
trying to fix random method