polish ui. clean up ruby