code for TeaRx web application